package com.roncoo.config;

import java.io.FileWriter;
import java.io.FileWriter;
import java.io.IOException;

public class AlipayConfig {

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id =
            "2021000117635367";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCCb/BOVUTICG6cYQ8rLRDD0PF8sQKKmjbICYPpgtRogEIRG8SLIPqyDxKzaY9JEzW9LyYwnUyTSj0gDZ+O7s+yfA6ECLiIaUUXUj2ml2ZJq2x65cDt3HdaSJTLmxveMEtgPVB08c3L3DJ64++qOX9GSA8ggt8Pq3jpwdzTG7HDwV1TyHBK/eGToUv7fpT+xMbjEp9nV2eJ2MlwVNW4qLAn+cCrRvvAAnKHb5YY+oNelEfroLoPt08vTdD6eq9nSAJGtYOHWNT/d4KvsFFIXwHO6Cwk/J5hKC3W9M6fSobXsBG3pLCNs7LGoth8wWVeu3g1PEzRY+vLSZqMh/i3NtjpAgMBAAECggEAdMo1qG3AwDqMj4h4RHh9YldbYgI7/E5IbqPWcOaruUXd4eOy/7/vuC62193UZeHFZDcrQqwVPGxkfqa0Dw7U+UMK3D3SvJFFQ7Rnbxpwg9Xxs7i0HkYgt731PLkNIsyrMOi1eYBoe/gVWuNsXEZPJ2at5LZJc4ZdJTBnwL4zVMoc8iifdvn2jO+Ad4eDCY1OXCk2nZhvMb8T9Aer8JJLOZan5PZmtxDAFTELmkgZBrUfnCDHC/OJyNabirZmzIZbzUiS5MQmlqcEd2FfFByLD5jJoB7HM15u5z9KhQaTWXLzspmxWh6mT3brNZ8YxbijEEyvL0KRuduY52hLW7PI4QKBgQD9yWgAISchq9aBKoOpfhfgZLsA98J6oIkZQP8GFZb81Z2r2IDp099bj0RBxbqsvIRTcB/5oh7xWwdEpyMURJ2nRDvG0m90i8VmoerOBZQK+QQP0qv43FNOxeJtgivOO7R61Td9ktIFMrSBCxQS6nO9t+S6yiaGabT9a1RMZ2MZSwKBgQCDkyXDIA9wnWQxtYxFpc8IuaQlH+gS8bHx7NUqYQJK4WlNas+DHjAKsXRfwh08p4PVjfbGBszMRbPf1pjUZTv/IklLJmEklY9warkGXFMeAu6BfvybhxxE6xtyKV2TlD373TzYAs3aMJRaz0WaVF/XfQdwinXljcbt4LvzNqrKGwKBgFDVN6Ti6l3VJ6tYaTsxCFXWf6GdSHpaa5B5nUDI26CIQYIcoWLYswmspib03bJrERKqYeTW+FgTkEsTmR65hCVknE2FdS5/3k4EQI+CQ1cDXYHUriXDt10dtjL/BQjZB3EgPF5oxzAUqF15s9kah+bjjZzZClBBlv4ok18KhwvlAoGALCFFcB2nsBDKEzYeFxoWx4lkOaNq9jekhEz37h/dYfoalIG3mfWdDWkZbCiyH67bs9vKof6T4Auc2f2jAtH1fowkYxU7Tcbv9jeFWVHL+uvmzP4ngY6ed6sXaIHhRedZpsk8aAMAwia7C34rjSixgJgJz8BQ7K5Rw2U2BMwYGnMCgYATM3bOXO9XAgWCCMm5mOY3jWbcv3L/A93vZ0riAyvKZH9BaqlOh1mdc7u53uThghxHtPo8Gn2rDb/0u1p0k1DsAJo0UhjFlh4qOp1Wd1b63fUxD0Tsz9sv80YDIuYX9FiP1MSxX+1G3Ut7/rpSgKjiTOMmYkQ0sm+YAf+/oHcD0g==";
    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp2XHJyz8YpdXoz3h15I3NjT7iHADumkNATtjrcc1qQlrxXo5vx9RewyOzW3LnNt/uzE/H+YY0ucoPzGz6Ghm5PniOyAqIL6ZHyeLNDs5qaPgq2qPplVsY1DWRixQ1DaEOt3ADYUEqrcizMr6Fei+XiXddhcho69wzyRQmXJ+VEelmFrk0XkNGHib2/6nSJW3lsvFxY8K5l2AWyQdnYaZehtfY0RTWGKtyIUcrEDJXuc4GH4EXS57g8KWRzcUeHr1xzaGbb2ukT5wI/Yn97u4MLQ9j8m01WczWyvDA4ORNaMY5g8bervCLgw9AdkOHodsUKxQ71yI402u9WEEs6QI+QIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://localhost/alipay.trade.page.pay-JAVA-UTF-8/notify_url";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    /*public static String return_url = "http://localhost/alipay.trade.page.pay-JAVA-UTF-8/return_url.jsp";*/
    public static String return_url = "http://localhost:8898/order/orderInfo/updById";
    // 签名方式，注意这里，如果步骤设置的是RSA则用RSA
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl =
            "https://openapi.alipaydev.com/gateway.do";

    // 支付宝网关
    public static String log_path = "C:\\";

}